

import 'package:flutter_ahj_app/base/utils/downloadfile/sp_util.dart';

class Constant {
  static final String ROLE_GCS = "xqf";
  static final String ROLE_XQF = "xqf";
  static String ROLE_idtype = "gcs";

  static final String USER_TYPE_DEDAULT = "default";//普通用户
  static final String USER_TYPE_GYS = "gys";//供应商
  static final String USER_RISK_MANAG = "risk_manag";//风险管理师

  static final String ADDRESS_NAME_PROVINCE = "province";
  static final String ADDRESS_NAME_CITY = "city";
  static final String ADDRESS_NAME_AREA = "district";

  static final String ADDRESS_NAME_TOWN = "town";
  static final String ADDRESS_NAME_village = "village";

  //身份类型 工程师：gcs  需求方：xqf
  static String getIDType() {
    return "xqf";
  }

  static setIDType(String idType) {
    SpUtil.putString("IDType", idType);
  }

  //是否首次启动
  static bool getFirstOpen() {
    return SpUtil.getBool("FirstOpen", defValue: true);
  }

  static setFirstOpen(bool firstOpen) {
    SpUtil.putBool("FirstOpen", firstOpen);
  }

  static bool isChange = false;

  //是否修改头像
  static bool getIsChangeAvater() {
    return isChange;
  }

  static setIsChangeAvater(bool firstOpen) {
    isChange = firstOpen;
  }
}
